<?php

/**
 * post actions.
 *
 * @package    hacride
 * @subpackage post
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2288 2006-10-02 15:22:13Z fabien $
 */
class postActions extends autopostActions
{
  public function executeAddComment()
  {
    $post_id = $this->getRequestParameter('id');

    $this->redirect('comment/create?post_id='.$post_id);
  }
  
  protected function updatePostFromRequest()
  {

    $this->post->setUserId($this->getUser()->getAttribute('user_id'));
    
    parent::updatePostFromRequest();
  }
  
}
